cmake_minimum_required(VERSION 3.0)
project(binary)
add_definitions(-DCSERIALPORT_DEBUG) # CSerialPort Debug Mode
# 查找OpenCV库
find_package(OpenCV REQUIRED)
find_package(CSerialPort QUIET)
# 包含OpenCV的头文件
include_directories(${OpenCV_INCLUDE_DIRS})

# 添加你的可执行文件或库
add_executable(cam cam.cpp)
add_executable(binary binary.cpp)
add_executable(getrgb getRGB.cpp)
# add_executable( ${PROJECT_NAME} CSerialPortDemoNoGui.cpp)
include_directories(${CSerialPort_INCLUDE_DIR})
target_link_libraries (${PROJECT_NAME} ${CSerialPort_LIBRARY})
# 链接OpenCV库
target_link_libraries(cam ${OpenCV_LIBS})
target_link_libraries(binary ${OpenCV_LIBS})
target_link_libraries(getrgb ${OpenCV_LIBS})
